

.massage-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.section-titles {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.section-titles.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-titles h2 {
    font-size: 48px;
    color: var(--cherry);
    position: relative;
    display: inline-block;
    padding: 0 20px;
    z-index: 2;
}

.section-titles h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--pink);
    transition: width 1.5s ease 0.5s;
}

.section-titles.animate h2::after {
    width: 80px;
}

.massage-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--black);
    line-height: 1.8;
    font-size: 18px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.3s;
}

.massage-intro.animate {
    opacity: 1;
    transform: translateY(0);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 40px);
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.photo-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
}

.photo-item.animate {
    animation: fadeInScale 1s forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.photo-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(153, 0, 51, 0.6) 0%, rgba(255, 158, 188, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-item:hover::before {
    opacity: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-1 {
    grid-column: 1 / span 7;
    grid-row: 1 / span 7;
    animation-delay: 0.2s;
}

.photo-2 {
    grid-column: 8 / span 5;
    grid-row: 1 / span 4;
    animation-delay: 0.4s;
}

.photo-3 {
    grid-column: 8 / span 5;
    grid-row: 5 / span 6;
    animation-delay: 0.6s;
}

.photo-4 {
    grid-column: 1 / span 4;
    grid-row: 8 / span 5;
    animation-delay: 0.8s;
}

.photo-5 {
    grid-column: 5 / span 8;
    grid-row: 11 / span 5;
    animation-delay: 1s;
}

.photo-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-item:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

.cta-container {
    text-align: center;
    margin-top: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 1.2s;
}

.cta-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    background-color: var(--button-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--button-hover);
    transition: all 0.4s ease-out;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:active {
    background-color: var(--button-active);
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: var(--pink);
    top: -100px;
    left: -150px;
    animation: float-animation 20s infinite alternate ease-in-out;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: var(--openpink);
    bottom: 50px;
    right: -100px;
    animation: float-animation 15s infinite alternate-reverse ease-in-out;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background-color: var(--button-color);
    top: 50%;
    right: 10%;
    animation: float-animation 18s infinite alternate ease-in-out;
}

@keyframes float-animation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, 20px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 40px) rotate(-5deg);
    }
    100% {
        transform: translate(10px, -30px) rotate(3deg);
    }
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 158, 188, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 158, 188, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 158, 188, 0);
    }
}

/* Bubbles background */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    bottom: -100px;
    animation: rise linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0) scale(0.2);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(20px) scale(0);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-rows: repeat(20, 40px);
    }
    
    .photo-1 {
        grid-column: 1 / span 12;
        grid-row: 1 / span 6;
    }
    
    .photo-2 {
        grid-column: 1 / span 6;
        grid-row: 7 / span 5;
    }
    
    .photo-3 {
        grid-column: 7 / span 6;
        grid-row: 7 / span 5;
    }
    
    .photo-4 {
        grid-column: 1 / span 12;
        grid-row: 12 / span 5;
    }
    
    .photo-5 {
        grid-column: 1 / span 12;
        grid-row: 17 / span 5;
    }
}